<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
  <title>Gestion</title>

  <meta http-equiv="content-type" content="text/html; charset=UTF-8">

  <link type="text/css" rel="stylesheet"href="css/gestion.css" >
  <link type="text/css" rel="stylesheet" href="themes/mac_os_x.css" >
  <link type="text/css" rel="stylesheet" href="themes/default.css" >	

  <script type="text/javascript" src="js/prototype.js"></script>
  <script type="text/javascript" src="js/window.js"></script>
  <script type="text/javascript" src="js/je.js"></script>
  <script type="text/javascript" src="js/accueil.ajaxclt.js"></script>
</head>
<body>

<ul id="menu-header">
  <li class="current"><a href="index.php">Accueil</a></li>
  <li><a href="#" id="btn_creer_compte">Créer un nouveau compte</a></li>
  <li><a href="#" id="btn_change_pwd">Changer de mot de passe</a></li>
  <li><a href="recherche.php">Recherche d'opérations</a></li>
  <li><a href="budget.php">Budget</a></li>
<?php if ($perm->have_perm('admin')) : ?>
  <li><a href="admin.php">Administration</a></li>
<?php endif; ?>
  <li><a href="index.php?action=logout">Déconnexion</a></li>
</ul>

<h1>Bienvenue <?php echo $user_name; ?></h1>

<table class="result">
<thead>
<tr>
  <th>Numéro de compte</th>
  <th>Libellé</th>
  <th>Solde</th></tr>
</thead>
<tbody id="comptes">
</tbody>
<tfoot>
<tr>
  <th colspan="2">Patrimoine</th>
  <th id="patrimoine">0</th></tr>
</tfoot>
</table>

<div id="div_infos_compte">
  <form action="index.php">
    <div>
    <input type="hidden" name="action" id="action" value="new_compte">
    <input type="hidden" name="id_compte" id="id_compte">
    <table>
    <tr>
      <td><label for="numero">Numéro de compte</label></td>
      <td><input type="text" name="numero" id="numero"></td></tr>
    <tr>
      <td><label for="libelle">Libellé</label></td>
      <td><input type="text" name="libelle" id="libelle"></td></tr>
    </table>
    <input type="submit" id="btn_new_compte" value="Créer">
    </div>
  </form>
</div>

<div id="div_change_pwd">
  <form action="#">
    <div>
    <table>
    <tr>
      <th><label for="pwd">Nouveau mot de passe</label></th>
      <td><input type="text" id="pwd" name="password"></td></tr>
    </table>
    <input type="submit" id="btn_pwd" value="mettre à jour">
    </div>
  </form>
</div>

</body>
</html>
